package com.ecfront.pojo;

import java.util.Date;
import java.util.Set;

/**
 * 用户表
 * @version 1.0
 * @author zhufeng
 */
@SuppressWarnings("unchecked")
public class User {

	private int id;//用户ID
	private String name;//用户姓名
	private String email;//用户email
	private String loginPwd;//用户登录密码
	private String payPwd;//用户支付密码
	private String question;//密码找回问题
	private String answer;//密码找回答案
	private String realName;//真实姓名
	private int sex;//用户性别,0为男,1为女
	private int age;//用户年龄
	private String phone;//用户固定电话
	private int qq;//用户QQ
	private String msn;//用户MSN
	private String wangwang;//用户阿里旺旺
	private String zipCode;//用户邮编
	private String add;//用户地址
	private String mobilePhone;//用户手机
	private String ic;//用户身份证号
	private String phonoUrl;//用户照片
	private Date regDate;//用户注册时间
	private Date lastDate;//用户上次登陆时间
	private double money;//用户所持有的虚拟币
	private int score;//用户积分
	private int wam;//用户被警告次数
	private String payBank;//用户支付银行名称
	private String payNum;//银行账号
	private int isLock;//用户是否被锁定，0没有，1被锁定
	//以下是多对一关联
	private UserGrade ug;//用户等级
	//以下是一对多关联
	private Set pays;//用户所拥有的订单集合
	private Set goodsComplains;//用户所拥有的投诉表集合
	private Set messages;//用户所留过的言
	private Set replys;//用户所有回复的集合
	//以下是一对一唯一外键关联
	private Shop shop;//用户所拥有的商铺ID
	



	public User(){}
	
	public User(int id, String name, String email, String loginPwd,
			String payPwd, String question, String answer, String realName,
			int sex, int age, String phone, int qq, String msn,
			String wangwang, String zipCode, String add, String mobilePhone,
			String ic, String phonoUrl, Date regDate, Date lastDate,
			double money, int score, int wam, String payBank,
			String payNum, int isLock, UserGrade ug, Set pays,
			Set goodsComplains, Set messages, Set replys, Shop shop) {
		super();
		this.id = id;
		this.name = name;
		this.email = email;
		this.loginPwd = loginPwd;
		this.payPwd = payPwd;
		this.question = question;
		this.answer = answer;
		this.realName = realName;
		this.sex = sex;
		this.age = age;
		this.phone = phone;
		this.qq = qq;
		this.msn = msn;
		this.wangwang = wangwang;
		this.zipCode = zipCode;
		this.add = add;
		this.mobilePhone = mobilePhone;
		this.ic = ic;
		this.phonoUrl = phonoUrl;
		this.regDate = regDate;
		this.lastDate = lastDate;
		this.money = money;
		this.score = score;
		this.wam = wam;
		this.payBank = payBank;
		this.payNum = payNum;
		this.isLock = isLock;
		this.ug = ug;
		this.pays = pays;
		this.goodsComplains = goodsComplains;
		this.messages = messages;
		this.replys = replys;
		this.shop = shop;
	}

	public Shop getShop() {
		return shop;
	}
	public void setShop(Shop shop) {
		this.shop = shop;
	}
	public Set getGoodsComplains() {
		return goodsComplains;
	}
	public void setGoodsComplains(Set goodsComplains) {
		this.goodsComplains = goodsComplains;
	}
	public Set getPays() {
		return pays;
	}
	public void setPays(Set pays) {
		this.pays = pays;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getLoginPwd() {
		return loginPwd;
	}
	public void setLoginPwd(String loginPwd) {
		this.loginPwd = loginPwd;
	}
	public String getPayPwd() {
		return payPwd;
	}
	public void setPayPwd(String payPwd) {
		this.payPwd = payPwd;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public int getQq() {
		return qq;
	}
	public void setQq(int qq) {
		this.qq = qq;
	}
	public String getMsn() {
		return msn;
	}
	public void setMsn(String msn) {
		this.msn = msn;
	}
	public String getWangwang() {
		return wangwang;
	}
	public void setWangwang(String wangwang) {
		this.wangwang = wangwang;
	}
	public String getZipCode() {
		return zipCode;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	public String getAdd() {
		return add;
	}
	public void setAdd(String add) {
		this.add = add;
	}
	public String getMobilePhone() {
		return mobilePhone;
	}
	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	public String getIc() {
		return ic;
	}
	public void setIc(String ic) {
		this.ic = ic;
	}
	public String getPhonoUrl() {
		return phonoUrl;
	}
	public void setPhonoUrl(String phonoUrl) {
		this.phonoUrl = phonoUrl;
	}
	public Date getRegDate() {
		return regDate;
	}
	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}
	public Date getLastDate() {
		return lastDate;
	}
	public void setLastDate(Date lastDate) {
		this.lastDate = lastDate;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getWam() {
		return wam;
	}
	public void setWam(int wam) {
		this.wam = wam;
	}
	public String getPayBank() {
		return payBank;
	}
	public void setPayBank(String payBank) {
		this.payBank = payBank;
	}
	public String getPayNum() {
		return payNum;
	}
	public void setPayNum(String payNum) {
		this.payNum = payNum;
	}
	public int getIsLock() {
		return isLock;
	}
	public void setIsLock(int isLock) {
		this.isLock = isLock;
	}
	public UserGrade getUg() {
		return ug;
	}
	public void setUg(UserGrade ug) {
		this.ug = ug;
	}
	public Set getMessages() {
		return messages;
	}
	public void setMessages(Set messages) {
		this.messages = messages;
	}
	public Set getReplys() {
		return replys;
	}
	public void setReplys(Set replys) {
		this.replys = replys;
	}
}
